package com.vietnam.power.domain;

import java.util.Date;
import java.util.List;

public class ArticleGroup {
	private int id;
	private Date createdDate;
	private String description;
	private String keyword;
	private String name;

	public ArticleGroup() {
	}

	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Date getCreatedDate() {
		return this.createdDate;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getKeyword() {
		return this.keyword;
	}

	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void convertToPersist(com.vietnam.power.persitence.ArticleGroup ag) {
		ag.setName(this.name);
		ag.setKeyword(this.keyword);
		ag.setDescription(this.description);
	}

	public void convertToDomain(com.vietnam.power.persitence.ArticleGroup ag) {
		this.id = ag.getId();
		this.keyword = ag.getKeyword();
		this.description = ag.getDescription();
		this.createdDate = ag.getCreatedDate();
		this.name = ag.getName();
	}
}